package com.zack.designPattern.state;

public class IngState implements IState {

	@Override
	public void handle(StateHolder sh) {
		System.out.println("进行中状态");
		if(sh.getCount()>0){
			sh.setState(new DoneState());
		}else{
			sh.setState(new ErrState());
		}
	}

}
